package com.wei.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 访问日志历史记录表
 * </p>
 *
 * @author Mr.Chen
 * @since 2022-04-16
 */
public class HistoryVisitLog extends Model<HistoryVisitLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 访问类型
     */
    private Integer type;

    /**
     * 省编码
     */
    private Integer provinceCode;

    /**
     * 地市编码
     */
    private Integer cityCode;

    /**
     * 访问地址
     */
    private String visitUrl;

    /**
     * 跳转地址
     */
    private String jumpUrl;

    /**
     * 访问IP地址
     */
    private String host;

    /**
     * 访问IP地址
     */
    private String ip;

    /**
     * 经度
     */
    private Double lon;

    /**
     * 纬度
     */
    private Double lat;

    /**
     * 推广码
     */
    private String promotionCode;

    /**
     * 数据添加时间
     */
    private Long addTime;

    /**
     * 数据修改时间
     */
    private Long updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(Integer provinceCode) {
        this.provinceCode = provinceCode;
    }
    public Integer getCityCode() {
        return cityCode;
    }

    public void setCityCode(Integer cityCode) {
        this.cityCode = cityCode;
    }
    public String getVisitUrl() {
        return visitUrl;
    }

    public void setVisitUrl(String visitUrl) {
        this.visitUrl = visitUrl;
    }
    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }
    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }
    public String getPromotionCode() {
        return promotionCode;
    }

    public void setPromotionCode(String promotionCode) {
        this.promotionCode = promotionCode;
    }
    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }
    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HistoryVisitLog{" +
            "id=" + id +
            ", type=" + type +
            ", provinceCode=" + provinceCode +
            ", cityCode=" + cityCode +
            ", visitUrl=" + visitUrl +
            ", jumpUrl=" + jumpUrl +
            ", host=" + host +
            ", ip=" + ip +
            ", lon=" + lon +
            ", lat=" + lat +
            ", promotionCode=" + promotionCode +
            ", addTime=" + addTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
